package com.aqie.coupon.merchants.dao;

import com.aqie.coupon.merchants.entity.Merchants;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface MerchantDao extends JpaRepository<Merchants,Integer> {
    Optional<Merchants> findById(Integer id);

    Merchants findByName(String name);
}
